#ifndef GLOBAL_VARIANT_H
#define GLOBAL_VARIANT_H

#include <QString>
#include <QPair>

//设备状态（环车检查端、驾驶端、捣鼓作业端、下位机端）
enum EquipmentStatusType{
    ExamineExamUnityEquipmentOnline = 0,
    ExamineExamUnityEquipmentOffline,
    RouteExamUnityEquipmentOnline,
    RouteExamUnityEquipmentOffline,
    TampingHomeworkEquipmentOnline,
    TampingHomeworkEquipmentOffline,
    ExamineExamUnityEquipmentLogIn,
    ExamineExamUnityEquipmentLogOut,
    RouteExamUnityEquipmentLogIn,
    RouteExamUnityEquipmentLogOut,
    TampingHomeworkEquipmentLogIn,
    TampingHomeworkEquipmentLogOut,
    LowerComputerEquipmentOnline,
    LowerComputerEquipmentOffline,
};

//设备类型
enum ClientHashEnum{
    ExamineExamUnityEquipment = 0,//运行前检查设备
    RouteExamUnityEquipment = 1,//线路驾驶设备
    LowerComputerCommucationEquipment = 2,//下位机通信设备
    TampingHomeworkEquipment = 3,//捣鼓设备
    //   GYKEquipment = 3,//GYK设备
};

//考试类型
enum ExamType{
    ExamineExam,
    RouteExam,
    TampingHomeworkExam,
    ExitType,
};

//考试模式类型
enum ExamPatternType{
    TrainingType,
    ExamType,
};


//设别映射
extern QHash<int, QPair<QString, int>> g_Client2Hash;
extern QHash<QPair<QString, int>, int> g_Hash2Client;


#endif // GLOBAL_VARIANT_H
